package com.doupi.partner.manager.authenticator.tag;

import com.doupi.partner.manager.authenticator.util.PermissionUtils;
import org.apache.shiro.web.tags.PermissionTag;

/**
 * 全资源匹配权限
 *
 * @author Alvin Wang
 * @version 1.0.0 @ 2017-04-16
 */
public class WholePermissionTag extends PermissionTag {

	@Override
	protected boolean isPermitted(String p) {
		return PermissionUtils.checkWholePermissionString(p);
	}

	@Override
	protected boolean showTagBody(String p) {
		return isPermitted(p);
	}
}
